<!DOCTYPE html >
<html>
<head>
<meta charset='utf-8'>
<title>text.html</title>
<script>
function copyFunc(ff){
ori = ff.ori.value;
ff.copy.value = ori;
}
</script>
</head>
<body>
<h1>text 입력상자의 값 제어</h1>
<form name='frm'>
원본 : <input type='text' name='ori' value='park'><br>
사본 : <input type='text' name='copy' value=''>
<p>
<input type='button' value='copy' onclick='copyFunc(this.form)'>
</form>
</body>
</html>